//
//  FactoryTrainDetailViewController.m
//  ShoppingExperience
//
//  Created by LiYinDi on 15-1-27.
//  Copyright (c) 2015年 RuiBen. All rights reserved.
//

#import "FactoryTrainDetailViewController.h"

@interface FactoryTrainDetailViewController ()

@end

@implementation FactoryTrainDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
  [self.alphaView setBackgroundColor:[Global parseColor:WESTORE_TRANSCLUCENT]];
    UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(Actiondo)];
    [self.alphaView addGestureRecognizer:tapGesture];
}
-(void)Actiondo
{
    CGRect viewFrame=self.commentView.frame;
    viewFrame.origin.y=768;
    self.commentView.frame=viewFrame;
}
-(IBAction) commentClick:(id)sender
{
    [UIView animateWithDuration:0.5f animations:^
     {
         CGRect viewFrame=self.commentView.frame;
         viewFrame.origin.y=0;
         self.commentView.frame=viewFrame;
     }completion:^(BOOL finished) {
         
     }];
}
-(IBAction)backClick:(id)sender
{
    if ([self.delegate respondsToSelector:@selector(factoryTrainDetailBackClick)]) {
        [self.delegate factoryTrainDetailBackClick];
    }

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
